//常量定义
package main

import (
	"fmt"
)

const (
	login = iota
	logout
	account
)

const (
	apple, banana = iota + 1, iota + 2 // iota =0
	pear, peach                        //iota= 1
	mango, orange
)

//三个常量的枚举值，分别是 1，4，7

func main() {
	fmt.Println(login, logout, account)
	fmt.Println(apple, banana, pear, peach, mango, orange)
}
